Fix an off-by-one in os.basename
All compilation now happens on the module mgr task

We now have a background task that is responsible for compiling code &
managing loaded modules.