fix replace_extension
Improve rmtree checking
improve pp version rmtree
Add futil_get_extension function
update header file
Move path_concat_from_zargs to path.c