Made cd more versatile, so that we can specify a dir for builder
that will be generated later