Fix issues on juju home directory