Added -f check to  in check_lib()