Store the initial working directory, expand $initial_cwd. Bug 1805