slightly cleaner approach when sysconf doesn't behave nicely