5.2 compatibility for the launcher wrapper.

replaced some old (guess 5.0) code with code that works with both 5.1 and 5.2.