simplified cachebusting script for asset directory logic - removed redundancy in localhost detection