Try to fix unit test to work on Linux/Ubuntu (like it does on my mac). Extract method to get octal permissions string into FileUtil.