Fixed reference to cwd not being set