Fixed erlang install script, it didn't work properly before. Now it seems to work properly
Readded rebar to the project. My problem with rebar before was because I had an old version of erlang installed (because the install script was not working properly)