fix issue with absolute paths while adding files
extract utility