Updated the guessPackagePath function for psr-4