makes templateURL a bit more dynamic
rebuilds dist scripts