I think you should only do the erb processing if the .erb filename exists.