Fix hard-coded use of './kit' in the kitsh build script and improve how the kit target name is defined.