Standard function to run commands.

Implement run_sync(), an utility function to run commands.
Remove all cookies when submodules are updated.

Trigger a rebuild by removing cookies when a submodule is updated.
Update submodules.