MDL-30381 Fixed the tempdir and cachedir value calculation
MDL-30381 Fixed the tempdir and cachedir value calculation

Instead of using the default dataroot location, the tempdir and cachedir
are now set under the real dataroot location specified via the argument
and/or the interactive session.

The patch also adds a PARAM_PATH check for the dataroot specified.

dilawar/moodle