Fix handling of Erlang/OTP based plugins