Ruby 1.8 compatibility: use path method to get the pathname of a file instance.