Fix for an issue where all databases were created in directories named "name"
Fix for issue where nonexistant paths couldn't be opened by the shell