Add file utility method for extracting base file name