improve pull-to-hdfs.sh to support hdfsproxy/httpfs/ssh/local storage backend