If opts is a string, treat it as entry path