CLI: Fix preferences not saving (Mac OSX)