Added check for existing assembly/script in REPL

Fixes #264