make 'VERSION=' part in modulecmd version regex optional

based on PR #927 by @riccardomurri