only attempt shared creds load if path is a file

fix for issue introduced in #2292 where if ~/.aws/credentials/ is a directory, an exception is thrown "IOError: [Errno 21] Is a directory: '<homedir>/.aws/credentials'"