Changed the exit code to 1 when no apps were found (or none match the $query).