Also check nested ifs for ssh/ffmpeg in read loops