update appexe util method to work with py2app