Added a check to make sure the local 'static' dir exists.