Fixed bug in the recursive file name function.