Code aligned to 0.0.2 version of broccoli-replace.