Fix for no open folders, MM app not running

* make sure folders are open before returning the first as the project
directory
* for some reason the settings.get('mm_app_location') is None when
called outside of a command, showing an error instead if this isn't
working, resaving can cause a relaunch...