Fixed error in ldap install when re-running script; use temp directory instead of /tmp as working directory.