fix prologue up for hadoop-1 as well
use .java patterns everywhere
use old FileStatus API
use old fs.listStatus() apis