Allow script reloading

We were correctly using 'function!' and 'command!' but we didn't let
execution ever get to the function definition after the first pass.