Or alternatively, keep the argument and move it up a line and remove the local cmd variable entirely.