added interactive shell check, fixes scp problems