fix upload tests on OSX (thx @stloyd)