Don't use relatives paths

Use $conf['datadir'] instead of $conf['savedir'] because the former is an absolute
path. Hence it will be correct in every context (eg: even during an xml-rpc query)