Only set $table_prefix if not set

Reversed the logic. I'm an idiot.
Set WP_LOCAL_DEV if using local DB details as well
Set URLs if we're in a VM

Fixes #2