Bug fix: error for crossprod if the user does not have permission to /tmp

Avoid using /tmp