fix interactive shell detection (works for CentOS)