get application real path in c. it needs argv[0].