Set CWD correctly