script path extractor: Extract partial paths from scripts

[Issue #50]