Updated code to get URL for data-type scripts/css to work better with folders included through symlinks and other virtual paths.