Update cctest to only set CWD file when used interactively