Made task matching slightly less flakey

Still not an ideal solution, but string matching should now work for single & double quotes by making it less specific.
Added a string-suffix-p function to grunt-test.el to allow tests to be run against older versions of Emacs.