[Build] Removed illegal access to distribution directory