Replace deprecated methods in grunt-0.4.2