Fix compiler bug where the full path of the source file being compiled would not be correctly saved