Fix autoloading when class name starts with a prefix

See #750