fix flymake for erlang and mongoose's rebar dir layout