Added ability to write shell files out