better fsloader detection of trailing slash