flatten paths so directories can be passed in, fix rspec mock deprication warnings
Merge pull request #14 from trbrink/resolve_directories

Flatten paths in case a directory is given