Import sys into local settings

Previously deploy:dev was failing out-of-the-box because of L38 checking
for 'test' in sys.argv, adding import sys to localsettings