Use full filename instead of basename.