Adds setupSubmodules function to module management script