Should resolve issue #76. Implements some improvements to path concatenation, utilizes the mapping from current iteration for comparison of directory paths.