normalized file modes, fixed requires in setup.py