replace ^ and ^^ with /shadow/ and /shadow-deep/