Make the if-up.d script work with no environment