Fix rebar build error and cleanup repo