Fix a bug relating to getting absolute file path