correctly generate bin/run and populate template variables
add missing file