fixed typo; chownSync -> chmodSync