Make MenuFromLinesTest independent from script path

Change-Id: I52974563607bca843f547b3323b1383226182aa0