minimize path and cpath modification in wrapper scripts