handling exception raised when homebrew path is invalid, fixes #3