CB-5660 use enabledelayedexpansion to handle )s in path

https://issues.apache.org/jira/browse/CB-5660