Bug fixes for resource path parsing.