Strange behaviour with defaults read in install script