For a whole month he travelled , till at last he reached the town where Dschemil dwelt , and as luck would have it , there was the young man sitting before his door with his beard unshaven and his shaggy hair hanging over his eyes .