Prevent parent directory as destination path

Prevent self trolling when the build output path is a parent directory