Changed lib/check source to work when run without the full path