better Server Path detection