Fixed auto path discovery issue