Stop packagePath variable from being undefined