Fixed #3: Dotfile paths get misparsed [tweaked regex, added test]