fix login shell detection