changed env variables to module constants
fixed app generation to work on linux