Use packagebase to chdir to the correct directory. This fix build when package name is not the package base