Making sure paths exist before executing