Fixing relative path to result file