graphics/f3d: avoid using /proc when possible
This patch has also been submitted upstream: https://github.com/f3d-app/f3d/pull/2972