improve library deploy autoload generator

make it possible to avoid duplicate class problems
for example caused by mocks