Fixed path string building

Fixes issue when INPUT_DIR is not ending with '/' symbol.