sh: login script fix