Fix interactive shell detection