In the west flash/debug commands, if the user gives an invalid build directory, they'll get a stack trace instead of a helpful error message when the cache can't be built. Fix that. Signed-off-by: Marti Bolivar <marti.bolivar@nordicsemi.no>