Expand %s in -openCommand to DATADIR and fix OSX settings-file name