migrated to grunt 0.4 api

I have had some troubles running dependencygraph on grunt 0.4 and it turns out there were some minor API changes. I fixed them.