Moved SHARK_PROJ_DIR after the configuration.
Reduced default memory allocation to 4G.