Use different method for osx/linux to set shell