It can be one of:
hdfs:///path
file:///path
/path
where /path is assumed to be HDFS if and only if hbase.cluster.distributed is set...

Also, the gsub will always complete, even if there's no file:// to substitute out, just like sed does.