refactor components generator to take into account current folder