Fixes #3579 :  generate-map.sh is not working on every shell

http://www.rudder-project.org/redmine/issues/3579