fixed regex lsreg_str
nested directories support