Improved require support.

Revered grunt-casperjs to previous version.