Dependency searching and results display should be more robust

I happened to have a "README.md" in ../README.md when I run "scripts/check_dependency.sh", and the script only searched the first file found. Refactored to continue searching until a result is found.

Pretty_print's arguments weren't protected with double quotes, so an empty variable was NOT passed as an empty string, as it should've been.