Fix composer provider using discontinued not_if and only_if

Fix not_if and only_if not working depending on the version of ruby you are using