Allow Pathname as config.project_root

there is no Pathname#empty?, so convert it to string before checking