Added env configuration per file (fixed #759)