make tests independant of the app location

user ERL_FLAGS instead of setting the path in the shebang