remove extra <li> tags and replace TARGET_PLATFORM_VERSION-maximum which doesn't parse in bash with TARGET_PLATFORM_VERSION_MAXIMUM