Fix path to hostname