.sh_functions: Added functions to convert between newline formats