refactoring erlang dependency checking.  added max erlang check for pre 0.13