dirname for server