[ALOY-801] fix cleanup of platform-specific orphan files

Ticket: [https://jira.appcelerator.org/browse/ALOY-801](https://jira.appcelerator.org/browse/ALOY-801)