Added logic to make mac spaecific aliases only happen on osx.