there are several places in config.php where host name of the instance is written. In version 1.0.2, you will typically find it in several config variables at lines 16 (hostname), 40 (root_url), 56 (uploads_url), 118 (image_uploads_url).
Values of these variables are written by the install script as string literals. If you, for whatever reason, need to change the hostname, CMS will not run correctly until you find and change all of the above variable values.
What I did is that I replaced every occurrence of the hostname in these variables by inserted expression . $config['hostname'] . , so if you have to change the hostname, you will have to change it only once in the whole config file.
I would like to suggest the development team to include this in the next convenient version of CMS Made Simple.
The story behind this is following:
I installed an instance of CMS-MS on my home pc without too much thinking, leaving "localhost" as the hostname. Later today I tried to access running CMS-MS from my PDA via bluetooth network access, using the BT-NA default IP address 192.168.0.1 as hostname in the URL. The first strange thing was that the CMS home page came as an unformatted, text-only page (in HTML, but without the theme colors and other "bells and whistles"). The second problem was that when I went to admin.php, after filling the login form I never actually reached the site again. It was because the redirect URL supplied by CMS-MS was "http://localhost/admin.php"...
It is interesting that CMS-MS does not use PHP variables (such as _SERVER['HTTP_HOST']) to figure out hostname from request headers or other reliable source, but maybe there is a good reason for that. For me, today, this was a complication

Good luck,
Jindra