fix interactive shell detection