Make network.interfaces work in cron where PATH is limited

Fixes #7990.