Add debug message.
Log error message with error message type.
Always restore the current directory.
Expand the input file absolute path.
Merge branch 'merge_all'