Potential bug fix for platforms with relative filepaths.