Fix `dir` path to pattern such as `dir/**/*` for `grunt.file.expand`.