Test to see if we can already write to chowned dir's if chown fails

`chown` will fail if we aren't root, but in some cases this is perfectly allowable (e.g. if the directories we are chowning are already writable due to being in the same group, or world writable), this patch will supress the error if that's the case.