Change exit status if path not found, simplify exception handling