Fix building syncthing on darwin host

This patch also clarifies why calmh changed the script before.
Without exporting GOOS we can build on darwin hosts with the same build script.
Also, readlink is different on osx, so I switched to a manual expansion with $(pwd)