fix #1581 - do not try to create an existing directory