Fixed log filename generation. Added global define for pitboss portal logging and log directory