Fixes

Resources declaration constructor fix, remove realpath from realpath(__DIR__)