adjust prefix to /opt/easybib
resolve syntax error (unnecessary switch/case anyway)