Add test cases for buildAbsolutePath (some, anyways)
Avoid memory corruption when setting plugin name
Fix small memory leak