Check if folder exists prior to trying to create it