Pass option before mode for BSD chmod compatibility

Minor tweak to prevent BSD chmod falling over - still compatible with GNU chmod.