Fix bug in init command where directories could be uncreated before usage