Change permissions to executable and remove broken packages