Should use Ruby's File API to get the file name.