Fixed: Undefined var error when creating new directory in backend