Changed the code that finds the package name to ensure it works when using a symbolic link to the package folder