scripts/realtime: use sh idioms
scripts/realtime: workaround for 	https://github.com/zultron/linuxcnc/issues/49

this is a stopgap measure, the cause still needs to be identified