Refactor to return error when executable path can't be determined; fixes #5