reject also directories from staged files list, fix #147, update #149