Fixing path issues in migration and seed functionality