if statement that checks for '/' in path

adding an if statement that checks for '/' at the end of path
Merge branch 'master' of https://github.com/jinlong25/catanalysis