removes files from lib directory and should also remove the lib directory