hack/test-cmd - moving root_dir flag for better grouping of flags