Fixed bug causing scrm to fail when started in subdirectory; touched up the parameter parsing code a bit.