[master] Fix download from file:// urls & properly handle empty <localRepository />