Modified the detection for python3 since it is mostly available under /usr/bin/python3