add missing %s to exception message
pass cwd when running the same command again