Added %dir to spec script