Do not use current working directory as cookbook name

If you had a repo called foo-cookbook but the name of the cookbook (in the metadata.rb) was actually called foo, rake test would fail. Now we will inspect the metadata.rb file and use the name value as the param for cookbook_name.