OSX: hopefully fix facebook (and possibly others) upload
(cherry picked from commit 571a308a122f933c25c902f3af3c869a896df4a5)