Fix base_dir warning.

file_exists will throw a base_dir warning if the session directory isn't
allowed within the basedir, this commit squashes that warning message.
Merge pull request #2147 from ben-rosio/2.x

Fix base_dir warning when starting session