add lookForMigrationFilesInSearchPath, add tests, some refactoring