Change session directory to use getCwd()