Replaced 'whereis' with 'which' for cleaner code (no more awking)