another fix to lib.c to avoide deleting /dev/null