Adding context per file and detecting file basename from the compiled file