Fixed the generated asset URL when there is a subdir defined.