Switch the "../../../../" with "$(G.cwd)/". That'll make it work in any directory.