Ensure config directories are created
Ensure deploy directory exists
Merge pull request #1340 from tomaszdurka/issue-1340

Ensure config directories exists before creating them