You don't mean "build", but the revision number? ~/snap/${SNAP_NAME}/${SNAP_REVISION}, like ~/snap/hello-world/42 ?
You don't mean "build", but the revision number? ~/snap/ ${SNAP_ NAME}/$ {SNAP_REVISION} , like ~/snap/ hello-world/ 42 ?