Fixed bug in relative path generation for scripts and styles.