Fixed the mistake when depth-png=yes but an empty avi file for depth is created anyway
Got rid of redundant routine for extention extraction, use boost::filesystem instead