Minor refactor to environment substitution. Rework of all File objects and added non-agnostic execution.