Make chief script work as intended

Move generate_files call to run before checkin_changes
Make "./generate.py" call work by ctx.lcd() before running