mptcp/check_linux: split out file parsing for easier testing