improved detection of app filename for iOS builds