Fix getenv usage in swift plugins

os.getenv returns a string, not an integer, so using %s will fail if the
variable SWIFT_OBJECT_PORT is set.
Merge pull request #309 from jd/master

Fix getenv usage in swift plugins