Improved bsession to first cd to a dir where there's known write permissions.