fix missing subdir check in Gruntfile