fixed installation routines
using erb replacement