multiple variables in template file names fix

Please test it, I currently have issues with building Elixir on this computer D: