Test for login shell on both OS X and linux