fix some style problems detected by cppcheck
Always use absolute path for file buffer names, compact paths for display
add a cd command