Update generators/angularcrud/filter/index.js

Filter generator was not working. Fixed it based on the directive generator