Fixed typo
Switch working directory in SAPI module