Remove bin/erl before replacing it

In some erlang distributions (e.g. brew) the ERTS files do not have 
write permissions set.  When this is the case the file:write_file will
fail with error 'eacces'.

This commit removes 'bin/erl' before attempting to write the new file.