Exit immediately on import error.

Signed-off-by: yzsolt <bolony.zsolt@gmail.com>
This check is unnecessary.

Signed-off-by: yzsolt <bolony.zsolt@gmail.com>
Use the tmp directory provided by the system instead of a hard-coded one.

Signed-off-by: yzsolt <bolony.zsolt@gmail.com>
Show a meaningful error if open_basedir is misconfigured (the tmp directoy is unavailable).

Signed-off-by: yzsolt <bolony.zsolt@gmail.com>
Merge pull request #944 from yzsolt/import-improvements

Import improvements