fixed relative path bug when using HDFS