Catch E739 error in making directory