Fix the parameter checking terminal
Swap the command to search
Fix the pattern
Fix checking file exists or not
Add sourcing host-dependent settings