Made it so that the check takes NODE_WORKING_DIRECTORY into consideration