fixing recursion issue when source subdirectory doesn't contain the source subdir