Fix z not being run in prompt command