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.