discover path if not specified.