fixed error being raised over duplicate directory being created