Throw an exception for errored return value when expanding env strings
Fix notifies