change base path to /opt when run via /usr/local/bin/release. still needs independence of paths