Fix URL resolving errors. Also fix Grunt task for local server