set chdir=TRUE in sys.source for sail backend