fix dir for non existing folders