replace hardcoded configs with environment variables

it feels better not having hardcoded sensitive infos doesnt it ?!

moreover, I updated the sed command to work on mac os x too : you have to give a blank argument after the -i option (http://stackoverflow.com/questions/4247068/sed-command-failing-on-mac-but-works-on-linux)

finally I removed a useless scale command