Fix file path handling. Variables.isCompiled is untested.