HDFS-16205. Make hdfs_allowSnapshot tool cross platform (#3388)

14 files changed