Made repository work on non-Windows systems (using temp dir for now).