Safe parsing of module $VERSION lines