updated build-modules script