Add file utility method for extracting base file name
Remove generate.outer.copy=2 support #1673