Component could be either filename or folder, we need folder. Fix #21.