Add an exists template function

From combro2k/docker-gen/3f963a1

Partial support of #19
Make -endpoint work consistently w/ -watch

See #18
Fix unable to create dest file/invalid cross-device link

Fixes #15