Fixing bug in recursive file list