Fixed build logic that assumes dist exists. Move submodule update to gulp