PX4: avoid nsh redirects in if statements

this helps avoid FAT filesystem corruption