Removed readlink call
Use boost::filesystem to rename file
Replaced getopt() with boost::program_options