fixing typo curDir => curPath