Fixed URL and prefix construction in scons scripts.
Updated ignored files.
Minor tweak to main_cgi.py
Fixed case with '.' in path or before file extension.