Change prefix to /opt, improve module support