Fixes spec when rspec is called to a dir