Fixed up the startup script [fixes #48705545]

- The bash script is now not geneated by ruby code. Its just one
  string.
- Fixed quotations for ruby -> bash -> export