Move the check_prefixes to main.py.

Since we know that check_prefixes was added only to detect the case of
a user using --user option and the user base directory not being on
path, the checking can be done, only for command line invocations.
Merge pull request #120 from punchagan/dont-check-prefixes

Dont check prefixes when not running from one of the prefix.