Refact stage script so it no longer depends on the pwd when when executed.

Adding move_stage script to automatically replace the ometa and terml _generated dirs with the staged dirs.