add func to compile erl files from the root of the project