Actually skip patches if not for the current environment

Signed-off-by: Ross Allan <rallanpcl@gmail.com>