Merge pull request #1941 from nouiz/config

Add support of more env variable.
add pid macro in the theano config flag system.