fix rerun of socket port

When using puppet it always returns returns as sync, the value of port
is an int in the file on disk but in the catalouge it's a string. This
commit uses insync?(is) to always convert socket[:port] to an integer
Merge pull request #110 from antonlindstrom/fix_port_integer_insync

fix rerun of socket port