Sanitize directory path. Delete trailing "/" if present
Merge pull request #7 from iamjarvo/1_trailing_slash

Sanitize directory path. Delete trailing "/" if present