generalise cmd_prefix to a general function to transform the command
drwxr-xr-x - testsuite