Fix remove sample dirs in unit_test to not fail on removing a directory multiple times

@wfrench please review
If two different parsers are configured to look at the same directory, the remove sample dirs method will fail because it will remove a directory, then try to remove it again for the second configuration and fail because the directory doesn't exist.  A check to make sure the directory does exist before removing prevents this.