Fix behavior of Path.expand/2. Improve docstrings