use hostname in abscence of basename