Use File.dirname to get the directory for dev DBs

For some reason, the actual directory resource throws an exception if
passed result of Pathname.parent.