Fix notebook path and creation errors

Fix issues with trailing "/" in notebook paths
Check if directory already exists before attempting to create it to prevent exceptions