Suggest current file's folder as rope folder path

If there is no folders open in sublime current file's folder is suggested.

If buffer is unsaved or no file is open then suggest "~".

I've tried the four scenarios successfully.