handle platform-specific checks in orphan file cleanup, don't delete alloy folder