refactor(task): minor refactor and improvements: now auto detect output extension, just to avoid bad task configuration