fix to handle hdfs:// correctly