Use real path for module importing, handle empty servers.