Fixed problems with scripts and default config

- added missing environment variables in scripts
- changed default port of web frontend back to 8080
- replaced bc command with 'expr +' for adding heap sizes