If either is missing/not set, fall back to a bash-only method for prompting the user. http://stackoverflow.com/questions/3417896#10015707