Added missing std::endl's in main.cpp and modified argument of replace_extension method in order to avoid the bug in the boost_filesystem library < 1.50