[fix_deploy] Changed templates path search to use os.path.join