update to new rspec syntax
ensure target directory exists