MDL-29749 files: Improved params PARAM_PATH and PARAM_FILE

The logic change here allows for multiple dots to be part
of a file name or folder name. Most Unit Tests have not
been altered and reflect the exact logic as it was before.