Fixed '.' target to work with sails-generate parallel PR

Changed recursive target array to pre function to process --no-frontend option.