I m wondering, what if we take the problem differently and get rid of the AE template all over.
If we mix this technique:
With the prompt asking for the versionning we could use variables like FILENAME / COMPNAME / VERSION (manually input) to create a folder structure that is like:
…\ELEMENT\FILENAME\COMPNAME\COMPNAME_VERSION.ext