Fix for PATH and bad install logic, added check for empty array on grep so installed? isn't always true