Fix find-package-app. Top-level `let` is not allowed in some cases.