fix bash script problem with %