fix that glob-replace does not attempt to replace in dirs