Avoid IOError while creating directory
Avoid IOError while creating directory

Only create directory if dirname is set and the directory doesn't exist yet.

vadmium/python-quilt,bjoernricks/python-quilt