Warn on invalid output-path

Add unit tests
Merge pull request #1649 from selvagsz/prevent-deleting-of-repo-for-invalid-outputpath

Prevent deletion of files when invalid output-path is provided