Prefer ruby methods over backticks

Especially for hard to quote file paths