Checks if directory exists before setting initial directory. Fixes #18.