Engine/Script: use paths between quotes and correctly parse them

This fixes the use of paths with whitespaces