move '-g' to lib/nails and fix controller generator.