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
Merge pull request #86 from superawesome/master

more fixes to Chief script around generate_files