Refactored paths.

Refactored paths that is works in under a subpath not on the root
folder.