fixed directory path traverse