Updated pynb to include dirname. This allows multple notebooks using the
same source.