Fixed issue with clean not finishing before other tasks start

Still need to fix imagemin functionality