Use magit function for finding git top directory