Fix for config file checking

Hi! I'm not sure what version of Rails/ActiveSupport or whatever it might be implements the "exist?" method on String, but it seems like it would be safer to use File.file? to check that the config file is actually a file (not a directory).