Added shell quoting for exec calls and assertions for options/files

Moved assertions into nextTicks for async consistency

Removed dev console.logs

Opening PR for these changes since they are good habits to have

Added actual path assertion and caught regression (it is not this repo)

Moved to shell-quote but that didn't fix the regression