Modifications to the gitsync script and M7 module