improved error messages on invalid migrations path