Fix upload directory so it works cross platform