run: allow scripts to be run as root

Forward-port of the run script change in the testvnd
commit on the 3.3.0 branch by David.

Needed to cleanly run the testisofs test as root in
the Jenkins environment.

'While here,' also fix messy which output in testsh2.

Change-Id: I6ec472e1386a54ae74b6e55394f01fa7c5ce53a9
add two missing files to flist

Change-Id: Ib5b62d603fbd57c4604f4613db1a2a5d485a8133
commands/synctree: changed K&R to ANSI style

Change-Id: I8667de0157ac3caa14e06f788daf62d6ed92b59c
commands/at: changed K&R to ANSI style

Change-Id: Ifb12349bcf456ff303c15fdedda4ab853a148aff
commands/chmod: changed K&R to ANSI style

Change-Id: If22f201dec8b34c8773910448d75b6d8256ee6a4
commands/chown: changed to K&R to ANSI style

Change-Id: I6a956e6479b6ebedca74fdd96e44756f00633cc4