Fix GetFiles trying to recurse into non-directories