Fix for when Composer's vendor dir is non-standard

By traversing up one directory less, the 'vendor'-directory can be skipped so the code also works if the vendor-dir is named something else.