adding check for deleting lib folder