Use command instead of type to check path