Stop packagePath variable from being undefined
Merge pull request #3968 from thaiphan/master

Stop packagePath variable from being undefined