make prompt optional.

On request prompt now optional by assigning a value to environment variable FOUNDATION_NO_WAIT.