fixed failing to install on a non-existing directory