Prevent REPL from compiling to source file

When compiling from the REPL, autocomplete suggests the source file as a possible output. This patch protects the user from accidentally overwriting his source file.