create folders after running pre_commands
add history
Merge pull request #22 from collective/pre_command_first

create folders after running pre_commands