Quote path expression to take care of $(prefix) possibly containing spaces.