don't allow to overflow the logdir + fixes
add INSTALL and aws_query.py