Make permissions test for mkdir more portable.

As per Greg's suggestion in the review.
Forgot to add the octal conversion to the last printf in the prediff

Now the test will actually work.