src: added dirname
src: added basename