changed makefiles to allow invoking them from any directory (fixed)