Fix import files for hdfs and S3.