Adaptation for Linux and better handling of sys.path.

(tested with Debian Wheezy)