Keep only the latest and valid patches

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>