moved ngen to deploy

using for loop to build subdirs