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 #1161 from jmaas/release24

Add a _validate_ks_template_path function in remote.py.