Add -p flag to mkdir commands to prevent error messages
Fix dependencies that refere to  get_reference.bash