change addDirFiles method to work with relative path