def get_recipe_tag(path):
tag = re.sub('<STR_LIT>','<STR_LIT>', path)<EOL>if tag in ['<STR_LIT>', None]:<EOL><INDENT>tag = '<STR_LIT>'<EOL><DEDENT>return tag<EOL>
get a recipe tag (the extension of a Singularity file). The extension
       determines the tag. If no extension is found, latest is used.

       Parameters
       ==========
       path: the path to the recipe file (e.g. /opt/Singularity.tag)