Removed faked end of file token and actually using real (apparently implicit) EOF token
Avoid forking to compile perms, helps with resource issues on limited mem agents
Moved logging so we get errors on failures too