Refactor code, one less conditional for osx default commands