improving module definition regexp to accept multiline definitions