Fixed setup.py to have have proper sys.path
Remove dependency on `pwd` module
Remove dependency on `grp` module
Implement more portable file locking
Remove dependency on `termios` module