hack path munging for migration scripts.  fixes #7