Use correct error message when renaming/deleting folder

This is for #8003.
these should be constants as for JSDoc is concerned 
```javascript
/*
 * @constant
*  @type {string} ERR_CTX_CREATE some description
 */
 var ERR_CTX_CREATE = "create";