Changed removeUnfinishedLogs so that it only looks in the given directory