Fixed several path-translation issues both in path class and module loading logic