Changed all where directory does not exist to create directory.

Applies to only the create commands or similar.