old code looked for 2.0 to decide if this was 2+, changed to 2.

made sure some dirs were created and permissions set before trying to write to them
Merge pull request #481 from avpavp/havp_2.1_dir_fixes

old code looked for 2.0 to decide if this was 2+, changed to 2.