Prevent parent directory as destination path
Merge pull request #1730 from selvagsz/prevent-parent-directory-as-outputpath

Prevent file deletions when the build output-path is a parent directory