Raise an exception if the berkshelf directory is not writable

- "Fixes" #297