improve(grunt): avoid some tasks to be runned when not needed