Fixed major bug where paths were not being correct when on remote site not in root path