CLSN-276: added exception for directory creation