Conditionally require packages to improve Grunt performance