Move directory creation to before script