Quoting fix for svnlook wrapper and fix for test if file
Some refactoring