Fix bug and rename the get screenshot function
Add CDPATH
Merge