Preventing issues with open_basedir restrictions.

Signed-off-by: David Kernan <paddez@redbrick.dcu.ie>