improve rm_recursive for better windows support