(*)extract get application directory method
(*)refactor libev version