bin/gensetup: bugfix, formatting