Fix inserting pragmas on another mounted file system problem

Clan used the 'rename' standard C function which is not able to
work on different mounted file systems. Now the file copy is done
by Clan itself.
Fix endscop position with -autoinsert and adds tests
Update bundled osl