Refactor prepend format string
Add Diff for change environment (directory)