Fix rebar config scripts evaluation

Scripts are evaluated using the dependency directory as current directory

Closes #1262