empty HDFS_URL bug correction and cleanup