fix complex run command parsing