Auto-detect HDMI for runcommand.sh

You might want to test this on a non-HDMI setup - I don't have one, but it should work...
Arguments are now 1 = auto, 2 = off, 3 = force on.