Support generic Hadoop Compatible Filesystem (short version)

This is a short version of #388.
i mean, if they are in sync, let's make it one variable for now.