Update files2dirs.sh

Used 'pushd/popd' instead of 'cd' in recursive calls.