Simplify detecting file type
Add support for PyPy3 2.4.0
Fix locate command

Not all Python implementations supply a bin/python binary or symlink