Correct path issue in contrib directory check