Enable autojump only when running in interactive mode

Having autojump enabled when executing scripts will pollute the jump history with unwanted directories. This simply checks for an interactive session and enable autojump only in this case.