replaced basename with \W magic bash char
error executing in single quotes