fix to make staticfiles work in dev

cd to directory so that relative paths for staticfiles are correct