applied a fix from djerius (rt 94315: Help dies if . in path)