Fix dependency of postgres template command