@@ -113,6 +113,4 @@ fi
export HOST="${SERVER_HOST}"
export PORT="${SERVER_PORT}"
-cd "${SNAP}/lib/node_modules/zwavejs2mqtt"
-
-exec "$@"
+[ "$(basename "${1}")" == "yarn" ] && cd "${SNAP}/lib/node_modules/zwavejs2mqtt" && exec "${@}" || exec "${@}"