Add a _validate_ks_template_path function in remote.py.

This function was mistakenly not imported in merge #966.
This also fixes issue #1156.
Merge pull request #1162 from jmaas/release26

Add a _validate_ks_template_path function in remote.py.