Check if shell is interactive before setting prompt