add uninstall capability in console mode by backport
fix directory creation