Update sourceURL syntax to latest change
Better variable names
Even better var names
Resolve ext after each first type
Code organization
Consistent path resolution (extensions)
Handle extensions differently per target type
Fix double file read issue (minor)