Fix hdfs uploading bugs for specparser.py