When determining the asset type from a file path, handle directories properly.

The issue here is that an asset type of AssetType_Text would be returned when
a directory path is specified instead of a file path.
Scene Editor: Improvements to the collision shape GUI.