check: fixed check and process.cwd()