Fixed permissions for /etc/nsswitch.conf - shouldn't be executable.
nsswitch.conf installation requires $tmp_dir, remove it at the very end.

I don't think we're under pressure to do early cleanup, so cleaning it
up at the end is logical and avoid future mistakes with $tmp_dir usage.