Fix creation of paths if non-existant