handling relative pathed require statements. removing name from amd template.