Fix an issue where output files aren't written sometimes

This was caused by doing a straight string comparison on paths.
It turns out that some paths may be Windows based and some paths
may be Unix based and so we need to use grunt.file.arePathsEquivalent().