Python 3 fixes

Replace two instances of `os.getcwdu()` with `core.getcwd()`.