Support KitKat's new system property implementation but fallback to the old one as needed. Also add debug output and do several minor cleanups
Remove carriage returns