Made build detect platform executable