modified to accept regex as file path input, this was done so that we can give multiple files as input to map reduce job