sync can now read from stdin like save.

I just added the ability for sync to behave like save which can read from stdin. This allows users of this tool to specify their own names to the `GLOCKFILE`.