Fix file parsing to make it work under Ubuntu lasts releases