If a --gruntfile is passed in with --base use basedir from gruntfile

This is a fix for cases that use

`grunt <task> --src=./path/ --base=./ --gruntfile=/path/to/Gruntfile.js`. The functionality broke after https://github.com/gruntjs/grunt-cli/issues/26 was fixed