Make network.interfaces work in cron where PATH is limited

Fixes #7990.

Note that this may not be something we want to do, so this should be discussed a bit.