workaround committing empty folders. fixed references to console.error()