Using rebar

Use proper rebar call to build the project. Otherwise missing files break dependent projects.