Properly rebuild project when repl starts