HIVE-8043: get file system from output path rather than scratch dir