Call debug sleep before checking the environment
Ignore binary files
Print better error message for dlopen