Add project root directory finder function