Fix permissions handling when testing in other projects (Fix #16)