cgi: Make sure chdir succeeds
cgi: Make sure chdir succeeds

Signed-off-by: Lauri Kasanen <fbaa1710f5685e9772d76f549035a0a3df1c04aa@gmx.com>
Signed-off-by: Eduardo Silva <b6525c140147034c280e3cd2f39161f32f3f4f62@gmail.com>

WilliamRen/monkey-1,WilliamRen/monkey-1,sujayraaj/monkeyTest,WilliamRen/monkey-1,monkey/monkey,dougsko/monkey,sbagmeijer/monkey,sbagmeijer/monkey,monkey/monkey,sujayraaj/monkey_rtems,sbagmeijer/monkey,dreamsxin/monkey,sujayraaj/monkey_rtems,dreamsxin/monkey,sujayraaj/monkeyTest,dreamsxin/monkey,sujayraaj/monkeyTest,sujayraaj/monkey_rtems,dougsko/monkey,monkey/monkey,sbagmeijer/monkey,sbagmeijer/monkey,dreamsxin/monkey,sujayraaj/monkey,dougsko/monkey,dreamsxin/monkey,sujayraaj/monkey_rtems,sujayraaj/monkey,WilliamRen/monkey-1,monkey/monkey,WilliamRen/monkey-1,dougsko/monkey,monkey/monkey,sujayraaj/monkeyTest,sujayraaj/monkey,monkey/monkey,sujayraaj/monkey,sujayraaj/monkey_rtems,dougsko/monkey,sujayraaj/monkey