Merge pull request #22 from indykish/master

defer Flush of log, load identity file from /var/lib/megam/megamd path
minor fix to ec2