fix bug where finddir returns relative paths in edge case