Updated require statement to use dirname()