How about test @temp exist before link?. If exists do nothing