This corrects an issue introduced by commit c6f9474348 which resulted in empty paths that were cleaned and expanded being transformed into "." instead of having no effect as intended.
c6f9474348