fixed problem with creating directories when called install command