Improved fetch_modules script (refs #115)