handle the first run where install_dir is nil