Fix deprecated warnings in *.erb files.


Add @ before variables names.
Make bindir configurable.