Fix setterm error when using non-interactive shell logins
Merge pull request #1 from mhdonnelly/master

Fix setterm error when using non-interactive shell logins