Clear output folder when project has build errors, fixed #26