Fix output dir and undeploy