Helper function for creating or updating CScope database at project root