Fix install when only bytecode is compiled by making cmx optional

Also make installation idempotent by removing any previous install
that was around previously.