check if in login shell before attempting to use bind