fix paths for 5.2, escaping in installer and fix wrapper scripts