patch by Justin Cormack, with slight modification
this commit is part of an effort to make more of busybox work out-of-the-box.