add missing function from rebar_utils for compiling eunit tests

I simply copied the missing function from rebar2.

Fixes #2.