Use salt's environment verification. Refs #346.

Should create required directories with proper permissions, even the logging one.
Fix `SyntaxError`.
Merge pull request #380 from s0undt3ch/issues/346

Use salt's environment verification. Refs #346.