Fixed extra forward slash in rootPath. Fixed defer/async attribute not respected.