Fixes issues with int_pattern in recursedir()

int_re was not used in recursedir().
Also adds terminating '$' to int_pattern, else it matched everything.
Fixes recursedir() getting a filename