add directory mode attribute, include recipe earlier, fix tests

Directory mode was being hard set before the install type was included. This meant that once the package was installed different directory modes would be set. The tests were capable of handling this and would fail since they were checking for the hard set mode.

Also in the previous recipe, the second chef run would change the directories to the hard set mode.

This update should fix these issues and allow a user to define what mode they prefer.