Use relative file path instead of just parentDir for compiled file path

When js file is placed in a dir with 2 or more levels of hierarchy the resulting path is wrong (has only parent dir name starting from root without the full path as original file had)