browserPath#dirname throw for empty string