Bash Script Capture Command Output False