Deduplicated array.
Cleaned up directory strings and implemented file move.