Fix location parsing handling when there is no location
Better error message when no version occurs