improve linux regex to always parse correctly