Fix the script since it was outputting the reverse of the actual result. Add debug output functionality at the same time.
Fix the script since it was outputting the reverse of the actual result. Add debug output functionality at the same time.

git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@268 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser