Made the 'sourcesTask' creation conditional to allow easier wrapping of the OS project.