coreAPI: file, correctly handle absolute paths