automatically remove irrelevant platform-specific folders