File mode

(PUP-3787) Add leading '0' for four-digit octal notation of file modes.
Perhaps extend this to the case where the sticky/etc bits are set, i.e. so that we get '01777' rather than '1777'. And add a spec test to catch that case, since it's easy to forget :)