Wrap create_directory calls in try...catch blocks.

Ignores any exceptions throw if exists returns true, otherwise re-throws exception.